package oo;

import java.util.ArrayList;
import java.util.List;

import javax.faces.model.SelectItem;

public class lista_oceny {

	private List<Double> items =new ArrayList<Double>();
	
	private List<SelectItem> dataList2 = new ArrayList<SelectItem>();
	private List<SelectItem> dataList = new ArrayList<SelectItem>();

	
	public List<SelectItem> getDataList2() {
		return dataList2;
	}

	public void setDataList2(List<SelectItem> dataList2) {
		this.dataList2 = dataList2;
	}

	public List<SelectItem> getDataList() {
		return dataList;
	}

	public void setDataList(List<SelectItem> dataList) {
		this.dataList = dataList;
	}

	public List<Double> getItems() {
		return items;
	}

	public void setItems(List<Double> items) {
		this.items = items;
	}

	public lista_oceny() {
		super();
		loadDataList();
		items.add(2.0);
		for(double e=3;e<=5;e+=0.5)
			items.add(e);
	}
	public void ocena(){
		System.out.println("1");
	}
	public void change(){
		System.out.println("c"+dataList2.size()+dataList2.get(0));
		SelectItem ses=null;
		//for(int aa=0;aa<dataList2.size();aa++)
		//{
			//ses= (SelectItem)dataList2.get(1);
			//System.out.println("-"+ses.getValue().toString());
		//}
			
	}
	public  void loadDataList() {    
		dataList.add(new SelectItem("hyski","z2012-Hyski Mateusz"));
		dataList.add(new SelectItem("hyski2","z2012-dodatkowy"));
    }  
	
}
